<?php
session_start();

unset($_SESSION['is_login']);
unset($_SESSION['user_id']);
unset($_SESSION['username']);
unset($_SESSION['email']);
//You have to call session_start() before you call session_destroy();
session_destroy();

header("location: login.php");
?>




